home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / btngo.zip / BTNGOC.ZIP / ITEMDATA.HPP < prev    next >
C/C++ Source or Header  |  1993-09-28  |  1KB  |  38 lines

  1. // must include WINDOWS.H before this
  2. class GroupFile{
  3.     char *grpfil;
  4.     HFILE hf;
  5.     int opened,items_to_read,error_condition_exists,tag_bytes;
  6.     int got_icon_default_data,x_pixels,y_pixels,icon_planes,icon_pixelbits;
  7.     int __far *pItemOffset;
  8.     HGLOBAL memhandle,memhandle2;
  9.     LONG filebytes;
  10.     void __far *memptr; // entire .GRP file
  11.     void __far *memptr2; // ptrs to strings, strings
  12.     // helper function prototypes...
  13.     int second_lower(unsigned int first,unsigned int second);
  14.     void get_icon_default_data();
  15. public:
  16.     GroupFile(char *p=NULL);
  17.     ~GroupFile();
  18.     void set_filename(char *p);
  19.     int error(){return error_condition_exists;}
  20.     int openfile();
  21.     void readheader();
  22.     int itemsleft(){return items_to_read;}
  23.     int showitem(int offset);
  24.     char __far *get_group_name();
  25.     char __far *get_item_name(int offset);
  26.     char __far *get_item_command(int offset);
  27.     char __far *get_item_command_nopath(int offset);
  28.     char __far *get_item_parameters(int offset);
  29.     char __far *get_item_default_dir(int offset);
  30.     int is_item_iconized(int offset);
  31.     HBITMAP get_fill_item_and_bitmap(int offset,int&x,int&y);
  32.     HBITMAP get_fill_item_xor_bitmap(int offset,int&x,int&y);
  33.     int get_icon_dimensions(int& height,int& width);
  34.     UINT get_icon_planes();
  35.     UINT get_icon_pixelbits();
  36.     void done_with_bitmaps();
  37. };
  38.